package com.ch.base.dao;

import com.ch.base.element.BaseWrapper;
import com.ch.base.util.StringUtils;

public class GenerateCodeWrapper extends BaseWrapper {
	private String tableName;
	private String columnId;
	private String columnName;
	private String dataType;
	private String charLength;
	private String comments;
	private String nullable;
	private String isPrimaryKey;

	private String formatUpperColumnName; 
	private String formatLowerColumnName;
	
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getColumnId() {
		return columnId;
	}
	public void setColumnId(String columnId) {
		this.columnId = columnId;
	}
	public String getColumnName() {
		return columnName;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}
	public String getDataType() {
		return dataType;
	}
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	public String getCharLength() {
		return charLength;
	}
	public void setCharLength(String charLength) {
		this.charLength = charLength;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getNullable() {
		return nullable;
	}
	public void setNullable(String nullable) {
		this.nullable = nullable;
	}
	public String getIsPrimaryKey() {
		return isPrimaryKey;
	}
	public void setIsPrimaryKey(String isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}
	public String getFormatUpperColumnName() {
		return this.getColumnName() != null ? StringUtils.proper(this.getColumnName(), "_") : "";
	}
	public void setFormatUpperColumnName(String formatUpperColumnName) {
		this.formatUpperColumnName = formatUpperColumnName;
	}
	public String getFormatLowerColumnName() {
		return StringUtils.lowerfirst(this.getFormatUpperColumnName());
	}
	public void setFormatLowerColumnName(String formatLowerColumnName) {
		this.formatLowerColumnName = formatLowerColumnName;
	}

	
}
